package cn.kenny.resource.mapper;

import cn.kenny.resource.pojo.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface QuestionMapper {

    @Select("select * from question order by id DESC limit 1")
    public Question findNewOne();
}
